﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Gantt
{
    public partial class Resource : General
    {
        public Resource()
        {
            this.Assignments = new HashSet<Assignment>();
            this.CreateOn = DateTime.Now;
        }
        public int ProjectId { get; set; }
        public override int Id { get; set; }

        public string CreateBy { get; set; }
        public DateTime CreateOn { get; set; }

        public string Name { get; set; }
        public Nullable<int> CalendarIdRaw { get; set; }

        public virtual ICollection<Assignment> Assignments { get; set; }

        [ForeignKey("CalendarIdRaw")]
        public virtual Calendar Calendar { get; set; }
    }
}
